package com.wenson.behavior.state;

/**
 * @ClassName: TrafficClient
 * @Author: luowangcheng
 * @Date: 2024/6/15 20:59
 * @Description:
 */
public class TrafficClient {
    public static void main(String[] args) {
        TrafficLight trafficLight = new TrafficLight();
        trafficLight.switchToYellow();
        trafficLight.switchToGreen();
        trafficLight.switchToYellow();
        trafficLight.switchToRed();
        trafficLight.switchToGreen();
    }
}
